<template>
	<view>
		<!-- 自定义导航栏 -->
		<!-- #ifdef APP -->
		<view class="status_bar">
			<view class="top_view">
				设计案例
			</view>
		</view>
		<!-- #endif -->
		<button @click="gotou">跳转</button>
		<sonVue titlg2='123' titlg3="456"></sonVue>
		<view class="ax">
			2541
		</view>
	</view>
</template>

<script>
	import sonVue from '../../compoents/son/son.vue'
	export default {
		components: {
			sonVue
		},
		data() {
			return {
				
			}
		},
		methods: {
			gotou() {
				uni.navigateTo({
					url: '/pages/user/user?id=1&&name=456S'
				})
			},
			onso(data) {
				console.log(data);
			}
		},
		onShareAppMessage() {
			return {
			      title: '分享标题',
			      path: '/pages/case/case',
			    };
		}
	}
</script>

<style lang="scss">
	.ax {
		/* #ifdef APP */
		background-color: aqua;
		/* #endif */
		/* #ifdef MP-WEIXIN */
		background-color: blue;
		/* #endif */
		/* #ifdef H5 */
		background-color: red;
		/* #endif */
	}
	/* #ifdef APP */
	.status_bar{
		height:44px;
		width: 100%;
		background-color:#dc2d00;
		color: white;
		text-align: center;
		line-height: 44px;
		font-weight: bolder;
		.top_view{
			height: var(--status-bar-height);
			width: 100%;
			background-color: #dc2d00;
			position: fixed;
			top: 0;
			z-index: 999;
		}
	}
	/* #endif */
	
	
</style>